﻿using AutoMapper;
using FFLTask.SRV.ViewModelMap.SharedMap;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FFLTask.SRV.ViewModelMap
{
    public static class Main
    {
        public static void Init()
        {
            onAccount();
            onShared();
            onTask();
            onTeam();
            onUser();
#if DEBUG
            Mapper.AssertConfigurationIsValid();
#endif

        }

        private static void onAccount()
        {
            AccountMap.UserModelMap.init();        
        }

        private static void onShared()
        {
            _SearchTaskByIdOrNameModelMap.init();
        }

        private static void onTask()
        {
            TaskMapAuto._AttachmentModelMap.init();
            TaskMapAuto._HistoryItemModelMap.init();
            TaskMapAuto._NodeTypeModelMap.init(); 
            TaskMapAuto.EditModelMap.init();
            TaskMapAuto.NewModelMap.init();
            TaskMapAuto.LiteItemModelMap.init();
            TaskMapAuto.StatusModelMap.init();
        }

        private static void onTeam()
        {
            TeamMap.TransferModelMap.init();
        }

        private static void onUser()
        {
            UserMapAuto.SummaryModelMap.init();
            UserMapAuto.ProfileModelMap.init();
        }
    }
}
